#include <stdio.h>


int main()
{
	int n;
	int num;
	int sum;
	int i;
	while(scanf("%d",&n)!=EOF)
	{
		sum=0;
		for(i=0;i<n;i++)
		{
			scanf("%d",&num);
			sum+=num;
		}
		printf("%d\n",sum);
	}
	return 0;
}